<?php

/**
 * @author Vince Loremia 
 * @copyright 2008
 */

class PartGroupCheck extends Zend_Db_Table
{
	private $db;
    
    public function __construct()
    {
        $this->db= Zend_Registry::get('db');
    }
	
	public function checkPartGroup($pageId, $groupId)
    {
       
    	$select = new Zend_Db_Select($this->db);
        $select
		->from ('part_group')
        ->where('group_id = ?', $groupId)
        ->where('page_id = ?', $pageId);
        $stmt = $select->query();
        $result = $stmt->fetchAll();
        return $result;

    }
}


?>